package com.ssmTest.dao;

import com.ssmTest.model.JobAd;
import com.ssmTest.model.MachineUserInformation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IJobAdDao {
    JobAd selectJobAd(int id);
    void insertJobAd(JobAd jobAd);
    List<JobAd> JobAdList(int toexamine);
    void updateInformation(@Param("id")int id,@Param("fail_reasion")String fail_reasion);
    void updateJobAd(JobAd jobAd);

    //关键字查询
    List<JobAd> selectSecondByAndKey(@Param("start")int start, @Param("end")int end, @Param("city")String city, @Param("key")String key);

    List<JobAd> selectSecondByNoKey(@Param("start")int start,@Param("end")int end,@Param("city")String city);

    void delJobAD(int id);

    List<JobAd> selectByPersionalId(int personal_id);
}
